package com.learn.design.visitor.test;

public class SendSmsVisitorImpl implements SendSmsVisitor {

    @Override
    public void sendSms(AlySendSms smsContent) {
        if (smsContent.getType() == 1) {
            System.out.println("阿里云发送验证码短信：" + smsContent);
        } else {
            System.out.println("阿里云发送通知短信：" + smsContent);
        }
    }

    @Override
    public void sendSms(TencentSendSms smsContent) {
        if (smsContent.getType() == 1) {
            System.out.println("腾讯发送验证码短信：" + smsContent);
        } else {
            System.out.println("腾讯发送通知短信：" + smsContent);
        }
    }
}
